import Layout from '@/layout'

// 系统设置
const SystemSetting = [
  {
    path: '/systemSetting',
    name: 'SystemSetting',
    component: Layout,
    redirect: false,
    meta: { title: '系统设置' },
    children: [
      {
        path: '/systemSetting/accounts',
        name: 'accounts',
        component: () => import('@/views/SystemSetting/accounts'),
        meta: { title: '帐号管理', policy: 'CentralControl.WaitedMessage' }
      },
      {
        path: '/systemSetting/role',
        name: 'role',
        component: () => import('@/views/SystemSetting/role/role.vue'),
        meta: { title: '角色管理', policy: 'CentralControl.HistoryMessage' }
      },
      {
        path: '/systemSetting/menu',
        name: 'menu',
        component: () => import('@/views/SystemSetting/menu/menu.vue'),
        meta: { title: '菜单管理', policy: 'CentralControl.MyWaitedMessage' }
      },
      {
        path: '/systemSetting/dictionaries',
        name: 'dictionaries',
        component: () => import('@/views/SystemSetting/dictionaries/dictionaries.vue'),
        meta: { title: '字典管理', policy: 'CentralControl.MyMessage' }
      },
      {
        path: '/systemSetting/log',
        name: 'log',
        
        meta: { title: '日志管理', policy: 'systemSetting.log' },
        component: () => import('@/views/SystemSetting/log/log.vue'),

        redirect:'/systemSetting/log/login',
        children:[
          {
            path: '/systemSetting/log/login',
            name: 'logLogin',
        component: () => import('@/views/SystemSetting/log/logLogin.vue'),
        meta: { title: '登录日志',policy: 'systemSetting.log.login'},
        

          },
          {
            path: '/systemSetting/log/Interface',
            name: 'Interface',
        component: () => import('@/views/SystemSetting/log/Interface.vue'),
        meta: { title: '接口日志',policy: 'systemSetting.log.Interface'},

          }
        ]
        // component: () => import('@/views/SystemSetting/log/log.vue'),
        // meta: { title: '日志管理', policy: 'CentralControl.MyMessage' }
      }
    ]
  }
]

export default SystemSetting
